package {
	
	import ascb.util.NumberUtilities;
	
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.net.*;
	import flash.text.TextField;
	
	public class test extends Sprite {
		
		public var _btn:Sprite;
		
		public var url:String = "http://localhost/welcomePage.php";
		public var req:URLRequest = new URLRequest(url);
		
		public var _die:die;
		
		
		public function test():void
		{
			_btn = new Sprite( );
			addChild(_btn);
			_btn.graphics.beginFill(0x0000FF);
			_btn.graphics.drawCircle(100,100,20);
			_btn.graphics.endFill( );

			_btn.addEventListener(MouseEvent.MOUSE_DOWN, doMouseDown);	
		} 
		
		public function doMouseDown(event:MouseEvent):void {
			navigateToURL(req, "_self");
		}
		
	}
}

